export default function (data) { // 1 series
    return {
        Option: {
            backgroundColor: '#ffffff',
            title: {
                show: false
            },
            tooltip: {
                formatter: '{a} {b} : {c}%'
            },
            series: [{
                name: '完成率',
                type: 'gauge',
                startAngle: 180,
                endAngle: 0,
                min: 0,
                max: 100,
                radius: '80%',
                pointer: {
                    width: 3,
                    length: '60%',
                    shadowColor: '#ccc',
                    shadowBlur: 5
                },
                // splitNumber: 3,
                center: ['50%', '50%'],
                axisLine: {
                    show: true,
                    lineStyle: {
                        width: 20,
                        shadowBlur: 0,
                        color: [[data.c, data.se], [1, '#f0f2f8']]
                    }
                },
                // 修改指标
                itemStyle: {
                    normal: {
                        color: '#3B3B43',
                        shadowBlur: 5
                    }
                },
                detail: {formatter: '{value}%'},
                data: [{value: data.v, name: ''}]
            }]
        }
    }
}
